import { ENV, PUBLISHING_ENVIRONMENT } from "@/main";

const _DEV_API_HOST = "https://www.baidu.com";
const _TEST_API_HOST = "";
const _PRO_API_HOST = "";

export function getUrl(url) {
  let baseUrl = "";
  switch (ENV) {
    case PUBLISHING_ENVIRONMENT.DEV:
      baseUrl += _DEV_API_HOST;
      break;
    case PUBLISHING_ENVIRONMENT.TEST:
      baseUrl += _TEST_API_HOST;
      break;
    case PUBLISHING_ENVIRONMENT.PROD:
      baseUrl += _PRO_API_HOST;
      break;
  }
  return baseUrl + url;
}

export const getProductTypes = "/s?";
